<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>挂载</title>
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
</head>
<body>
<div id="app" class="app">
    <h2>msg:{{msg}}</h2>
    <h2>school:</h2>
    <ul>
        <li>name:{{school.name}}</li>
        <li>address:{{school.address}}</li>
    </ul>
    <h2>arr:{{arr}}</h2>
</div>
<script>
    new Vue({
        el:'#app', //id挂载点
        // el:'.app',  // class挂载点
        // el:'div',  // 标签挂载点
        data:{ //数据
            msg:'你好', // 数据绑定
            school:{
                name:'尚硅谷',
                address:'北京'
            },
            arr:[1,2,3,4,5]
        }
    })
</script>
</body>
</html>